<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../../js/vue.js"></script>
</head>
<body>
    <div id="ap">
<!-- <button >跳转</button> -->
<a href="https://gitee.com/dashboard">git</a>
<a v-bind:href="url">百度</a>
<button @click="change" target="_blank">跳转</button>
    </div>
    <script>
        new Vue({
            el:'#ap',
            data:{
                url:'https://www.baidu.com/'
            },
            methods:{
                change(){
                    this.url='http://taobao.com'
                }
            }
        })
    </script>
</body>
</html>